#!/bin/sh
gnuplot << EOF
set terminal postscript enhanced color "Helvetica" 19
set output "$1/ber-before.eps"
set auto x
set auto y 
#set logscale y
#yrange [0:300]
set key left top
#set boxwidth 1.5
#set grid y
#set xtic rotate by -60 scale 0
set bmargin 4
#set ylabel "Bit error rate" font "Helvetica, 32"
set xlabel "Elapsed time (s)" font "Helvetica, 32"
#plot 'lib-benchmark.dat' using 2:xtic(1) ti col fs solid lc rgb "blue", '' u 3 ti col fs solid lc rgb "yellow"
plot '$1/N.ber.dat' using 1:2 title 'naive' w l lw 2 lc rgb "red",\
     '$1/S.ber.dat' using 1:2 title 'multi-phase' w l lw 2 lc rgb "blue",\
     '$1/P.ber.dat' using 1:2 title 'no scrub' w l lw 2 lc rgb "green"




